package com.mjh.zhujianju.service.party;

import com.livew.framework.base.service.BaseService;
import com.mjh.zhujianju.model.party.BuildingExamAnswerEO;

import java.util.List;

/**
 * @author liuyang
 * @Description: 题目答案
 * @date 2018/8/18 14:19
 */
public interface BuildingExamAnswerService   extends BaseService<BuildingExamAnswerEO> {

    /**
     * 根据题目id查询下面所有的答案
     * @param topicIds
     * @return
     */
    List<BuildingExamAnswerEO> queryBuildingExamAnswerByTopicIds(List<Long> topicIds);

    void deleteAllAnswerByIds(List<Long> ids);

    void batchSaveAnswers(List<BuildingExamAnswerEO> buildingExamAnswerEOS);

    int delByPrimaryKey(Long id);

    void delAnswerByPrimaryKey(BuildingExamAnswerEO buildingExamAnswerEO);

    List<BuildingExamAnswerEO> findTopicAnswers(Long topicId);

    void deleteByTopicId(Long topicId);
}
